//
//  NoticeInfoViewController.m
//  NaRiLSVMT
//
//  Created by jmsre on 14-8-20.
//  Copyright (c) 2014年 helloyouth.org. All rights reserved.
//

#import "NoticeInfoViewController.h"
#import "UIViewController+MJPopupViewController.h"
#import "NoticeInfoViewController+Request.h"


@interface NoticeInfoViewController ()

@end

@implementation NoticeInfoViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.

    
//    self.contentView.layer.borderWidth = 0.5;
//    self.contentView.layer.cornerRadius = 10.0;
//    self.contentView.layer.borderColor = [UIColor grayColor].CGColor;
//    self.contentView.clipsToBounds = YES;
    
    self.noticeView.layer.borderWidth = 0.5;
    self.noticeView.layer.cornerRadius = 10.0;
    self.noticeView.layer.borderColor = [UIColor grayColor].CGColor;
    self.noticeView.clipsToBounds = YES;

    self.noticeInfoContent.text = self.noticeInfoTitle;
    [self NRLSMTGetTemplateInfo];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)shutAction:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(backButtonClicked:)]) {
        [self.delegate backButtonClicked:self];
    }
}

//点击背景消失提示框按钮:
- (IBAction)topButAction:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(backButtonClicked:)]) {
        [self.delegate backButtonClicked:self];
    }
}

- (IBAction)bottomButAction:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(backButtonClicked:)]) {
        [self.delegate backButtonClicked:self];
    }
}

- (IBAction)leftButAction:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(backButtonClicked:)]) {
        [self.delegate backButtonClicked:self];
    }
}

- (IBAction)rightButAction:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(backButtonClicked:)]) {
        [self.delegate backButtonClicked:self];
    }
}



@end
